package org.example.controller;

import org.example.entity.ACar;

import java.util.List;

public class ACarsController {


    public static Boolean add(List<ACar> cars, ACar car){
        if(car==null) return true;
        int length=cars.size();
        cars.add(car);
        if(length==cars.size()+1) {
            return true;
        }
        return false;
    }
}
